package com.aliyun.messagemgt.application.service;

import com.aliyun.messagemgt.dto.MsgSource;

/**
 * Created with IDEA
 * 流控
 *
 * @author:zhangxingxing 0027012120
 * @date:2019/4/2
 * @time:15:29
 */
public interface FlowControl {

    /**
     * 判断可发送条数
     *
     * @param size
     * @param msgSource
     * @return
     */
    int inControl(int size, MsgSource msgSource);
}
